//
//  CGSizes.swift
//  JXBaseTools
//
//  Created by godox on 2021/11/30.
//

import Foundation

extension UIView: JXCompatible {}

public extension JX where Base: UIView {
    
    var width: CGFloat{
        get { base.frame.size.width }
        set { base.frame.size.width = newValue }
    }
    var height: CGFloat{
        get { base.frame.size.height }
        set { base.frame.size.height = newValue}
        
    }
    var size: CGSize{
        get { base.frame.size }
        set {}
    }
    var y: CGFloat{
        get { base.frame.origin.y }
        set {}
    }
    var x: CGFloat{
        get { base.frame.origin.x }
        set {}
    }
    var center: CGPoint{
        get { base.center }
        set {}
    }
    
  
    
    
}
